home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / WORDWRAP.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  421b  |  22 lines

  1. .I 5 5
  2.  
  3. #include <stdio.h>
  4. #include <conio.h>
  5. #include <string.h>
  6.  
  7. .D 6 1
  8. .I 7 1
  9. void clr_eol(const int curpos, const int pos); 
  10. .D 8 1
  11. .I 12 2
  12.       while((get_ln(75)) != 0)      /* Change 75 to whatever number you */
  13.             ;                       /* wish to be the right margin      */ 
  14. .D 13 2
  15. .I 69 1
  16.                   word[wordpos] = (char)ch; 
  17. .D 70 1
  18. .I 86 2
  19.       return -1;
  20. .D 87 1
  21.